Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: upgrade to @dhis2/cli-app-scripts@6 (DHIS2-9893) #1634

Merged
merged 1 commit into from
Mar 11, 2021
Merged

Conversation

amcgee
Copy link
Member

@amcgee amcgee commented Mar 11, 2021

Part of DHIS2-9893

Upgrades ui, cli-app-scripts, app-runtime, d2-i18n, and analytics

Tree shaking combined with lazy plugin loading gives us a savings of 1.5MB (!!!!) javascript payload (gzipped) when no EV or ER plugins are present. Those add another ~1MB though.

Maps plugin slimming will increase the benefit here as well.

Before
Screen Shot 2021-03-11 at 19 10 48

After
Screen Shot 2021-03-11 at 19 10 41


The initial render-blocking load (before plugin code is fetched) is reduced from 3.1MB gzipped 🥴 to just 547kb 🎉 -- still too much and we should look into non-js bloat but MUCH improved!

Before
Screen Shot 2021-03-11 at 19 36 30

After
Screen Shot 2021-03-11 at 19 35 58

@varl
Copy link
Contributor

varl commented Mar 11, 2021

Pretty slick for what is basically a two file update!

Copy link
Contributor

@varl varl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally and seems to work fine to me.

@amcgee amcgee merged commit 662fd6e into master Mar 11, 2021
@amcgee amcgee deleted the DHIS2-9893 branch March 11, 2021 22:45
dhis2-bot added a commit that referenced this pull request Mar 12, 2021
## [31.14.3](v31.14.2...v31.14.3) (2021-03-12)

### Bug Fixes

* @dhis2/analytics@16.0.15, @dhis2/data-visualizer-plugin@35.20.18 ([#1645](#1645)) ([bfa9889](bfa9889))
* **translations:** sync translations from transifex (master) ([#1585](#1585)) ([45b3524](45b3524))
* upgrade to @dhis2/cli-app-scripts@6 (DHIS2-9893) ([#1634](#1634)) ([662fd6e](662fd6e))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 31.14.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants